package com.cyw.springboot_mongo.dao;

import com.cyw.springboot_mongo.pojo.User;

/**
 * @ClassName
 * @Author: chenyw
 * @Date: 2022/01/25/14:45
 * @Version:
 */
public interface UserDao {
    public void saveUser(User user);    //新增数据

    public void removeUser(Long id);    //删除数据

    public User findUserByName(String name);    //通过名字查找数据

    public int updateUser(User user);           //修改数据
}
